package com.thrd.taiexhibition.adapter;

import android.content.Context;

import com.thrd.basicframework.bean.BaseRecyclerAdapter;
import com.thrd.taiexhibition.R;
import com.thrd.taiexhibition.bean.BeanCityIndustryFocus;
import com.thrd.taiexhibition.ui.FocusIndustryView;

import java.util.List;

/**
 * @author: ${唐杰}
 * @date: 2021/3/25
 */
public class CityFocusAdapter extends BaseRecyclerAdapter<List<BeanCityIndustryFocus>> {
    public CityFocusAdapter(Context context, List<List<BeanCityIndustryFocus>> data, FocusIndustryView.OnItemImageListener onItemImageListener) {
        super(context, data);
        this.onItemImageListener=onItemImageListener;
    }

    @Override
    public void bindData(BaseViewHolder holder, List<BeanCityIndustryFocus> beanCityIndustry) {
        FocusIndustryView mFocusIndustryView = (FocusIndustryView) holder.getView(R.id.fiv_layout);
        mFocusIndustryView.setData(beanCityIndustry);
        mFocusIndustryView.setOnItemImageListener(onItemImageListener);
    }

    @Override
    public int getItemLayoutId() {
        return R.layout.item_city_focus;
    }

    private FocusIndustryView.OnItemImageListener onItemImageListener;




}
